﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Model
{

    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("LMWarrantyTime", "LMWarrantyTime", new string[] { "WTID" })]
    [KnownType(typeof(WarrantyTime))]
    public class WarrantyTime : MB.Orm.Common.BaseModel
    {
        public WarrantyTime()
        {

        }
        private int _WTID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("WTID", System.Data.DbType.Int32)]
        public int WTID
        {
            get { return _WTID; }
            set { _WTID = value; }
        }
        private int _BEGININT;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("BEGININT", System.Data.DbType.Int32)]
        public int BEGININT
        {
            get { return _BEGININT; }
            set { _BEGININT = value; }
        }
        private int _ENDINT;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ENDINT", System.Data.DbType.Int32)]
        public int ENDINT
        {
            get { return _ENDINT; }
            set { _ENDINT = value; }
        }

        private decimal _TIMEPROPORTION;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("TIMEPROPORTION", System.Data.DbType.Decimal)]
        public decimal TIMEPROPORTION
        {
            get { return _TIMEPROPORTION; }
            set { _TIMEPROPORTION = value; }
        }

        private string _OPRNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("OPRNO", System.Data.DbType.String)]
        public string OPRNO
        {
            get { return _OPRNO; }
            set { _OPRNO = value; }
        }

        private string _STATUS;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("STATUS", System.Data.DbType.String)]
        public string STATUS
        {
            get { return _STATUS; }
            set { _STATUS = value; }
        }

        private string _CREATEDATE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CREATEDATE", System.Data.DbType.String)]
        public string CREATEDATE
        {
            get { return _CREATEDATE; }
            set { _CREATEDATE = value; }
        }

        private string _USERNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("USERNAME", System.Data.DbType.String)]
        public string USERNAME
        {
            get { return _USERNAME; }
            set { _USERNAME = value; }
        }


        [DataMember]
        public string ErrorMsg { get; set; }
    }
}
